$(function(){
    var launchConfirm = (schema_ID,title)=>{
        $('#eformSchema_id').val(schema_ID)
        $('#confirm-body').html(`Create Form: <br>${title}?`)
        $('#confirmModal').modal('show')
        console.log('launch')
    } 
    
    $('#btn-confirm').on('click',_=>{
        $('#createForm').submit()
    })

    $('.create-form-btn').on('click',function(e){
        var schema_ID = $(this).data('sid')
        var title = $(this).data('title')
        launchConfirm(schema_ID,title)
    })
})